package org.luckystrophe.snowtoms.model;

import java.io.IOException;
import java.io.UnsupportedEncodingException;

import org.apache.http.client.ClientProtocolException;
import org.apache.http.client.methods.HttpUriRequest;
import org.json.JSONException;
import org.json.JSONObject;
import org.luckystrophe.snowtoms.manager.HttpConnectManager;

public abstract class JsonRequestGET implements JsonRequest {

	@Override
	public abstract HttpUriRequest getHttpUriRequest() throws UnsupportedEncodingException, JSONException;

	public JSONObject sendJsonRequest() throws ClientProtocolException, JSONException, IOException {
		return HttpConnectManager.getConnection(this);
	}

}
